package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the SOLICITUDE database table.
 * 
 */
@Entity
@NamedQuery(name="Solicitude.findAll", query="SELECT s FROM Solicitude s")
public class Solicitude implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SOLICITUDE_SSOID_GENERATOR", sequenceName="SOLICITUDE_SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SOLICITUDE_SSOID_GENERATOR")
	private long soid;

	@Temporal(TemporalType.DATE)
	private Date birth;

	private String content;

	private String feedback;

	private BigDecimal logic;

	private String remark;

	private String theme;

	@Temporal(TemporalType.DATE)
	@Column(name="\"TIME\"")
	private Date time;

	@Column(name="\"TYPE\"")
	private String type;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="CUSNO")
	private Customer customer;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	//bi-directional many-to-one association to Linkman
	@ManyToOne
	@JoinColumn(name="LINKNO")
	private Linkman linkman;

	public Solicitude() {
	}

	public long getSoid() {
		return this.soid;
	}

	public void setSoid(long soid) {
		this.soid = soid;
	}

	public Date getBirth() {
		return this.birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFeedback() {
		return this.feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public BigDecimal getLogic() {
		return this.logic;
	}

	public void setLogic(BigDecimal logic) {
		this.logic = logic;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getTheme() {
		return this.theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Linkman getLinkman() {
		return linkman;
	}

	public void setLinkman(Linkman linkman) {
		this.linkman = linkman;
	}

}